<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{$L.APP_NAME}</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
<script src="http://g.alicdn.com/bui/seajs/2.3.0/sea.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.10/config.js"></script>
<script src="/assets/kxdr/index.js"></script>
	<style>
	h1 button,h2 button,h3 button,h4 button,.title button{ldelim}position:absolute{rdelim}
	</style>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">
<input type="hidden" class="curtool" value="{$curtool}" />
 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">{$L.APP_HOME} >> {$L.APP_NAME} >> {$L.SHOW_EVENT_LIST}</h3>
		<a class="button pull-right" style="margin-left:10px" href="/"><i class="icon-home"></i>{$L.SYS_RETURN}</a>
		<a class="button pull-right" style="margin-left:10px"  href="/?a=gamecfg&m=shopadmin&repick=1"><i class="icon-refresh"></i>{$L.SYS_REPICK}</a>
		<a class="button button-success pull-right" href="/?m=Kxdr&c=Advance&a=Index"><i class="icon icon-home icon-white"></i></a>
		</div>
	  </div>
	  <hr />
	  <div class="row">
  <div class="span24 doc-content">
	<div class="row" style="margin-bottom:20px">
	<div class="span8"><img src="https://img.alicdn.com/imgextra/i3/27390555/TB2b7COeVXXXXcbXpXXXXXXXXXX-27390555.gif" /></div>
	<div class="span14"  style="margin-bottom:20px"><h2>{$L.APP_DESCRIP_TITLE}</h2><h4>{$L.APP_DESCRIP}</h4></div>
	<div class="span14">
	<a class="button" href="/?m=Kxdr&c=Advance&a=step1&creat=1" style="width:180px;height:33px;padding-top:10px;margin-left:80px;border:2px solid #0068b7;"><h2>{$L.CREATE_EVENT}</h2></a>
	<a class="button" href="/?m=Kxdr&c=Content" style="width:140px;height:33px;padding-top:10px;margin-left:20px;border:2px solid #84ccc9;"><h2>{$L.SHOW_CONTENT}</h2></a>
	<br />
	<br />
	<div></div>
	<div class="button-group" style="margin: 9px 0;">
      <a class="button" href="/?c=jifen&m=shopadmin">{$L.APP_VANTAGES}</a>
      <a class="button">{$L.APP_HONOR}</a>
      <a class="button" href="/?c=gifts&m=shopadmin">{$L.APP_GIFT}</a>
      <a class="button" href="/?a=bandcfg&m=shopadmin&c=frontcfg">{$L.APP_VIEW}</a>
    </div>
	</div>
	</div>
	  <ul class="toolbar">
        <li><a class="button button-mini button-info"><i class="icon-white icon-play"></i>进行中</a></li>
        <li><a class="button button-mini"><i class="icon-pause"></i>已结束</a></li>
        <li class="pull-right"><form method="post" action="/?m=Kxdr&c=Advance"><input name="q" type="text" class=" input " data-tip="{ldelim}ext : '{$L.APP_SEARTCH}'{rdelim}"/> <button class="button"><i class="icon-search"></i> {$L.APP_SEARTCH}</button></form></li>
      </ul> 
	  {if !$events}
	    <ul class="breadcrumb">
			<li class="active">{$L.APP_NO_EVENTS}</li>
		</ul>
	  {else}
		{foreach from=$events item=item key=key}
			<div class="panel {if $item.status=='running'}panel-primary{/if}">
			  <div class="panel-header clearfix js-event js-ev-{$item.id}" style="cursor:pointer" data-eid="{$item.id}">
				<h3 class="pull-left"><i class="icon-chevron-up {if $item.status=='running'}icon-white{/if} js-icon-{$item.id}"></i> [<span class="game_name{$key}">{$item.game_name}</span>] - [<span class="player_name{$item.player_id}">{$item.player_name}</span>] - <span class="event_title{$key}">{$item.title}</span> - <span class="think_type{$key}">{$item.think_type}</span>  {if $item.status=='stopped'}<i class="icon-pause"></i>{/if} </h3>
				<a href="/?m=Kxdr&c=Advance&a=step2&edit=1" class="button button-mini  pull-right js-edit js-edit-ev-{$item.id}" ><i class=" icon-pencil"></i></a>
				<!-- <button class="button button-mini  pull-right"><i class="icon-arrow-down"></i></button> -->
			  </div>
			  <div class="panel-body js-content-{$key} hide" style="line-height:24px">
			  <div class="span19 title"><h1 class="pull-left event_title{$key}">{$item.title}</h1> <button class="button button-mini js-edit hide" data-value="{$item.title}" data-field="event_title" data-eid="{$key}"><i class=" icon-pencil"></i></button></div>
			  	<div class="button-group span4" style="margin:0">
				  <a class="button">{$L.APP_WHO_GUESSING}</a>
				  <a class="button">{$L.APP_SEND_GIFT}</a>
				</div>
			  <div class="span23" style="border-bottom:1px dashed #CCC;margin-bottom:10px;padding-bottom:10px">
				  <div class="span12">
				  <h3><span class="event_descrip{$key}">{$item.description|default:""}</span> <button class="button button-mini  js-edit hide hide" data-value="{$item.description|default:""}" data-field="event_descrip" data-eid="{$key}"><i class=" icon-pencil"></i></button></h3>
				  <h2>{$L.EVENT_NAME}：<span class="game_name{$key}">{$item.game_name}</span> <button class="button button-mini  js-edit hide " data-value="{$item.game_name}" data-field="game_name" data-eid="{$item.game_id}"><i class=" icon-pencil"></i></button></h2>
				  <h4>{$L.EVENT_START_TIME}：<span class="start_time{$key}">{$item.start_time|date_format:"%Y-%m-%d"}</span> <button class="button button-mini  js-edit hide " data-value="{$item.start_time|date_format:'%Y-%m-%d'}" data-field="start_time" data-eid="{$item.game_id}"><i class=" icon-pencil"></i></button></h4>
				  <h4>{$L.EVNET_LOCATION}：<span class="location{$key}">{$item.location|default:""}</span> <button class="button button-mini  js-edit hide " data-value="{$item.location|default:""}"data-field="location" data-eid="{$item.game_id}"><i class=" icon-pencil"></i></button></h4>
				  <h4>{$L.EVENT_DESCRIPTION}：<span class="game_descrip{$key}">{$item.game_descrip}</span> <button class="button button-mini  js-edit hide " data-value="{$item.game_descrip}" data-field="game_descrip" data-eid="{$item.game_id}"><i class=" icon-pencil"></i></button></h4>
				  </div>
				  <div class="span11">
				  <h3>{$L.PLAYER}：<span class="player_name{$item.player_id}">{$item.player_name}</span>  <button class="button button-mini  js-edit hide " data-value="{$item.player_name}" data-field="player_name" data-eid="{$item.player_id}"><i class=" icon-pencil"></i></button></h3>
				  <h4>{$L.EVENT_PLAYER_DESCRIP}：<span class="event_player_descrip{$key}">{$item.event_player_descrip|default:""}</span>  <button class="button button-mini  js-edit hide " data-value="{$item.event_player_descrip|default:""}" data-field="event_player_descrip" data-eid="{$key}"><i class=" icon-pencil"></i></button></h4>
				  <h4>{$L.PLAYER_DESCRIP}：<span class="player_descrip{$item.player_id}">{$item.player_descrip|default:""}</span>  <button class="button button-mini  js-edit hide " data-value="{$item.player_descrip|default:""}" data-field="player_descrip" data-eid="{$item.player_id}"><i class=" icon-pencil"></i></button></h4>
				  </div>
			  </div>
			  <div class="span23">
				  <h2>{$L.EVENT_THINK_TYPE}：<span class="think_type{$key}">{$item.think_type}</span><small>[{$item.think_type_way_name}]</small><button class="button button-mini  js-edit hide " data-value="{$item.think_type}" data-field="think_type" data-eid="{$key}"><i class=" icon-pencil"></i></button></h2>
				  <h4>{$L.EVENT_GIFTING_TIME}：<span class="gifting_time{$key}">{$item.gifting_time}</span><button class="button button-mini  js-edit hide " data-value="{$item.gifting_time}" data-field="gifting_time" data-eid="{$key}"><i class=" icon-pencil"></i></button></h4>
				  {foreach from=$item.gifts item=gift key=gid}
				  <div class="span4 offset1">
					<span class="badge badge-success think_type{$key}">{$item.think_type}</span>
					<h4><span class="gift_cffs_{$key}{$gid}">{$gift.cffs}</span><button class="button button-mini  js-edit hide " data-value="{$gift.cffs}" data-field="gift_cffs" data-gift="{$key}{$gid}" data-eid="{$gid}"><i class=" icon-pencil"></i></button>{$L.EVENT_VISIBLE_GIFT}：</h4>
					<img src="{$gift.pic_url}_160x160.jpg" />
					<h2><span class="gift_name_{$key}{$gid}">{$gift.name}</span><button class="button button-mini  js-edit hide " data-value="{$gift.name}" data-field="gift_name" data-gift="{$key}{$gid}" data-eid="{$gift.gift_id}"><i class=" icon-pencil"></i></button></h2>
					<h4>{$L.EVENT_GFIT_QUANT}：<span class="gift_event_quant_{$key}{$gid}">{$gift.event_quant}</span>{$L.EVENT_GIFT_UNIT}<button class="button button-mini  js-edit hide " data-value="{$gift.event_quant}" data-gift="{$key}{$gid}" data-field="gift_event_quant" data-eid="{$gid}"><i class=" icon-pencil"></i></button></h4>
					<h4>{$L.EVNET_GIFT_GETWAY}：<span class="gift_hqfs_{$key}{$gid}">{$gift.hqfs}</span><button class="button button-mini  js-edit hide " data-value="{$gift.hqfs}" data-field="gift_hqfs" data-gift="{$key}{$gid}" data-eid="{$gid}"><i class=" icon-pencil"></i></button></h4>
					<span class="gift_hqfs_str_{$key}{$gid}">{if $gift.get_type==3}概率10%抽奖2次{/if}
					{if $gift.get_type==4}5日-12日满100元订单兑换{/if}</span>
					<h4>{$L.EVENT_GIFT_PRICE}：<span class="gift_price_{$key}{$gid}">{$gift.price}</span>元<button class="button button-mini  js-edit hide " data-value="{$gift.price}" data-field="gift_price"  data-gift="{$key}{$gid}" data-eid="{$gift.gift_id}"><i class=" icon-pencil"></i></button></h4>
					
				  </div>
				{/foreach}
			  </div>
			  </div>
			</div>
		{/foreach}
		{/if}
    <div>
      <div class="pagination pull-right">
	  {$page}
      </div>
    </div>
</div>

      </div>
    </div>
  </div>
</body>
</html>